﻿using System.ComponentModel;
using System.Configuration;

namespace Common
{
    public static class Variables
    {
        public const string LogPathFile = "~/ErrorLog.txt";
        public const string GlossaryPath = @".\Resource\Glossary.resx";

        [DefaultValue(LANGUAGE.VIETNAMESE)]
        public static LANGUAGE Language { get; set; }

        public static int TimeOut
        {
            get
            {
                int timeOut = 60;
                if (!int.TryParse(ConfigurationSettings.AppSettings["CommandTimeOut"], out timeOut)) timeOut = 60;
                return timeOut;
            }
        }
    }
}
